/*
 * Copyright (C) 2012 Yichao
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package action;

import com.opensymphony.xwork2.ActionSupport;
import ezcms.dto.Conference;
import ezcms.dto.ConferenceItemSubmission;
import ezcms.dto.Event;
import ezcms.dto.Topic;
import ezcms.exceptions.PresentationException;
import ezcms.exceptions.ServiceInvokeException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import service.ConferenceService;

/**
 *
 * @author Yichao
 * @author Le Tuan Anh <anh.takaji@gmail.com>
 */

public class ConferenceItemSubmissionAction extends ActionSupport {
    private ConferenceItemSubmission conferenceItemSubmission;
    private Long id;
   
    public ConferenceItemSubmissionAction() throws PresentationException {
        
    }
    
    public List<String> getListSubmissionType(){
        List<String> res = new ArrayList<String>();
        res.add("Paper");
        res.add("Workshop");
        return res;
    }
    
    public List<String> getListTopic(){
        List<String> res = new ArrayList<String>();
        res.add("Topic 1");
        res.add("Topic 2");
        return res;
    }
    
     public List<String> getListPresentationType(){
        List<String> res = new ArrayList<String>();
        res.add("Paper presentation");
        res.add("Oral Presentation");
        return res;
    }
    
    public String index() {
        return "success";
    }

    //prepare form for new record
    public String create() {
        return "create";
    }

    //prepare form for edit
    public String edit() {
        return "edit";
    }

    //update record and show updated result
    public String update() {
        return "show";
    }

    //delete record and redirected to index
    public String delete() {
        return "success";
    }
    
    public String addAuthor(){
        return "show";
    }
    
    public String addFile(){
        return "show";
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }
            
}
